package cn.yuhan.simplediary.system.entity;

import cn.yuhan.simplediary.base.BaseEntity;
import cn.yuhan.simplediary.base.UserRoleEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("users")
public class User extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String username;
    private String password;
    private UserRoleEnum role;
    private Boolean enabled;
}